﻿const { videoAds } = require('./ads/video');
let alert = require('../script/game/alert');
const { ADS } = require('./ads/ADS');
const { prefabArray, PrefabCache, prefabPool, initPrefabPool, initPrefab } = require("./util/gameResources");
// window.shopId = 'nanping';
window.material = {
    id:""
}
cc.Class({
    extends: cc.Component,

    properties: {
        label: {
            default: null,
            type: cc.Label
        },
        // defaults, set visually when attaching this script to the Canvas
        text: 'Hello, World!'
    },

    start : function(){
        
    },

    // use this for initialization
    onLoad: function () {   

        // 初始化SDK
        
        cc.log('初始化了');
        ADS.initAds();
        videoAds.init();
        cc.debug.setDisplayStats(false)
        window.mode = cc.sys.localStorage.getItem('mode');
        // 初始化预制体
        
    },

    // called every frame
    update: function (dt) {

    },
    
   
});
